package com.woniu.service;

import com.woniu.entity.RbacRole;
import com.woniu.entity.ResponseEntity;

import java.util.List;
import java.util.Set;

/**
 * @author Rain
 * @Description :
 * @date 2022/09/02 15:58
 */
public interface RbacRoleService {

    ResponseEntity findAll(int pageNum, int pageSize, RbacRole role);

    ResponseEntity findOne(int id);

    ResponseEntity addOne(RbacRole role);

    ResponseEntity deleteOne(int id);

    ResponseEntity updateOne(RbacRole role);

    Set<String> findOneByName(String username);

    ResponseEntity updateRoleStatus(Integer id, String  status);

    ResponseEntity findCheckedID(Integer id);

    ResponseEntity removeMenuByRoleID(Integer roleID, Integer menuID);

    ResponseEntity addMenuByRoleID(Integer roleID, Integer menuID);

    ResponseEntity roleMenuSave(Integer roleID, List<Integer> menuIDs);
}
